export let appConfig = {
    //本地测试
    // IP_URL: "http://localhost:8099",
    // PREVIEW_URL: "http://www.hyjckj.net:8080/upload/",

    //生产
    IP_URL: "https://www.hyjckj.net:443/",
    PREVIEW_URL: "http://www.hyjckj.net:8080/upload/",

    // 市局
    /* IP_URL: "https://dtwzh.szqts.gov.cn:443/",
    PREVIEW_URL: "http://58.210.227.48:8066/upload/",*/


    // OFFICE_URL: "https://view.officeapps.live.com/op/view.aspx?src=",
    OFFICE_URL: "http://www.xdocin.com/xdoc?_func=to&_format=html&_cache=1&_xdoc=",
    APK_DOWNLOAD: 'http://58.210.227.48:8066/upload/app/elevator.apk',//apk下载完整地址
    // APK_DOWNLOAD: 'http://yhtscjg.hyjckj.net:8668/upload/app/elevator.apk',//apk下载完整地址
    imageSize: 1500,

    API: {
        login: "login", // 用户登录
        logout: "logout", // 用户注销
        checkFace: "checkFace", //人脸识别接口
        getUserInfo: "getCurrentUserInfo", // 获取当前登录用户信息
        getUserMenuInfo: "getCurrentUserMenuInfo", // 获取当前登录用户的权限信息
        getVersion: "getVersion",
        noticeQueryList: "api/notice/queryList", //通知查询
        informationQueryList: "api/information/queryList", //资讯
        queryElevatorInfo: "api/elevator/", //查询电梯信息
        queryElevatorType: "api/elevatorType/getList", //查询电梯类型
        queryPartyById: "api/party/queryById/", //根据id查机构
        getMarkById: "api/user/getMarkById", //根据id查用户信息
        queryRepairList: "api/repairInfo/queryByElevatorList", //查询维修记录
        queryEmergencyList: "api/emergencyRescue/getList", //查询应急救援记录
        noticeFindById: "api/notice/findById/", //查询通知的详情
        informationById: "api/information/queryById/", //查询咨询的详情
        getUpload: "user/getUpload/", //获取图片
        queryDebris: "api/maint/queryDebris", //杂物电梯 列表查询
        queryEscalator: "api/maint/queryEscalator", //自动扶梯 人行道列表查询
        queryHydpress: "api/maint/queryHydpress", //液压电梯列表查询
        queryTraction: "api/maint/queryTraction", //曳引电梯列表查询
        addRepairInfoElevator: "api/repairInfo/addElevator", //新增维修记录
        addDebris: "api/maint/addDebris", //新增杂物电梯维保数据
        addEscalator: "api/maint/addEscalator", //新增自动扶梯 人行道维保数据
        addHydpress: "api/maint/addHydpress", //新增液压电梯维保数据
        addTraction: "api/maint/addTraction", //新增曳引电梯维保数据
        upload: "api/user/upload", //文件上传
        emergencyRescueAdd: "/api/emergencyRescue/add", //救援新增
        rescueDrillAdd: "api/rescueDrill/add", //救援演练
        inspectionAdd: "api/inspection/add", //巡检信息
        updateReadState: "api/notice/updateReadState", // 更新通知
        handleUserRegId: "api/handleUserRegId", //用户设备号绑定
        queryUsedRepairList: "api/repairInfo/queryUsedRepairList", //物业人员查看待确认的维修记录
        updateRepairInfo: "api/repairInfo/update", //更新维修记录
        addAppliyRepair: "api/apply/add", //新增报修
        queryAppliyRepair: "api/apply/getOne/", //查询报修
        updateRepairApply: "api/apply/update", //更新报修
        getRepairApplyList: "api/apply/getList", //根据条件查询报修列表
        addEleUsedInspect: "api/eleUsedInspect/add", //新增电梯使用情况检查
        addUsedControl: "api/usedControlInspect/add", //新增单位管理检查
        queryByIdAndTypeList: "api/party/queryByIdAndTypeList", //查询父机构下某个类型的机构列表
        addSafeControlRecord: "api/safeControlRecord/add", //新增监管部门检查记录
        getSafeConById: "api/safeControlRecord/getOne/", //查询检查记录
        updateSafeContr: "api/safeControlRecord/update", //更新检查记录
        updateSafeContrCheck: "api/safeControlRecord/updateChecker", //更新检查记录 检查人员
        queryUsedControlInspect: "api/usedControlInspect/query/", //查询单位情况记录表
        queryelevatorUsed: "api/eleUsedInspect/query/", //查询电梯情况记录表
        advertiseQuery: "api/advertise/query", //查询广告的轮播图
        queryTractionDetails: "api/maint/queryTractionDetails/", //曳引电梯维保查询
        queryDebrisDetails: "api/maint/queryDebrisDetails/", //杂物电梯维保查询
        queryEscalatorDetails: "api/maint/queryEscalatorDetails/", //自动扶梯 人行道维保查询
        queryHydpressDetails: "api/maint/queryHydpressDetails/", //液压电梯维保查询
        queryPartyByNameLk: "api/party/queryByNameLk", //根据名字模糊查询
        addSelfCheckRecord: "api/selfCheck/add", //新增自检
        updateLatLng: "api/elevator/updateLatLng", //更新电梯经纬度
        queryPlanDetail: "api/planDetail/queryPlanDetail", // 查询计划列表
        queryPlanDictItem: "api/planDictItem/queryPlanDictItem", //查询计划 检查项目
        queryPlanDictItem1: "api/planDictItem/queryPlanDictItem1", //查询计划 检查项目
        queryCheckResult: 'api/checkResult/queryCheckResult',     //查询 检查结果内容\
        queryCheckItem: 'api/checkItem/queryCheckItem', //查询检查项
        queryEmpiric: 'api/promotion/query',    //查经验值 等级，及 成就
        updateUserPwd: 'api/user/updateUserPwd',    //修改密码
        updateUserPhone: 'api/user/updateUserPhone',    //修改手机号
        addByRead: 'api/promotion/addByRead',    //阅读安全提示加积分
        getUserList: 'api/user/getUserList',    //获取用户列表
        toupdate: 'api/user/toupdate',    //检查版本，是否需要更新
        getInspectionList: 'api/inspection/getInspectionList',  //查巡检列表
        updateUserFace: 'api/user/updatefaceurl',    //更新人脸照片

        addMeatasis: 'api/user/addMeatasis',    //用户转移申请
        updateElevatorPlace: 'api/elevator/updateElevatorPlace', //更新电梯所在场所
        queryLaws: 'api/lowCodeMapping/query', //
        queryCheckUser: 'api/queryByPartyId/', // 根据单位查询人员
        //----------------------放活动的接口欧------------------------------
        addActivity1: 'api/activity/addActivity1',    //活动记录
        queryMaintRecord: 'api/spotObjectPlan/findRecordApp', // 查询未完成维保记录
        findCheckItemApp: 'api/spotCheckItem/findCheckItemApp', // 维保获取检查记录
        findElevatorInfo: 'api/spotCheckItem/findElevatorInfoApp', // 维保获取电梯信息
        addCheckItemApp: 'api/spotCheckItem/addCheckItemApp', // 维保新增检查记录
        queryFinishRecord: 'api/spotObjectPlan/queryFinishRecordApp', // 查询已完成维保记录
        querySpotCheckCacheApp: 'api/spotCheckItem/querySpotCheckCacheApp', // 多台电梯的缓存数据
        getElevatorInfoByNum: 'api/elevator/getElevatorInfoByNum', //根据电梯编号查电梯详情
        queryRepairInfoById: 'api/repairInfo/queryRepairInfoById',//根据id查询维修信息
        initfault: '/api/emergencyRescue/initfault',//初始化电梯故障
        getEleInfoBy96333Code: 'api/elevator/getEleInfoBy96333Code',    //根据96333设备号获取电梯信息


    },
    timeout: 30000, // 请求超时时间
    retryTimes: 2,
    spinner: "circles",
    rowItems: 3,
    language: "ch", // 语言
    a: "9U7p81*y",
    emergencyPhone: "96333"
};

export let globalVariables = {};

export let constant = {
    //机构类型
    PARTY_TYPE: [
        { label: "维保单位", value: "1" },
        { label: "使用单位", value: "2" },
        { label: "检验机构", value: "3" },
        { label: "监管部门", value: "4" }
    ],
    PLAN_DICT_TYPE: [
        { label: "日常监督检查", value: "1" },
        { label: "重点时段监督检查", value: "2" },
        { label: "专项监督检查", value: "3" },
        { label: "其他", value: "4" }
    ],
    maintenceTypes: [
        {
            label: "半月保",
            value: "1"
        },
        {
            label: "季度保",
            value: "2"
        },
        {
            label: "半年保",
            value: "3"
        },
        {
            label: "年保",
            value: "4"
        }
    ],
    CHECK_STATE: [
        {
            label: "未检查",
            value: "0"
        },
        {
            label: "已完成",
            value: "1"
        },
        {
            label: "待调整",
            value: "2"
        }
    ]
};
